Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632790 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/140 - Love Calculator

style.css cody/swapnilsparsh/30DaysOfJavaScript/140 - Love Calculator/style.css
133 Views
0 Comments
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: rgb(220, 166, 175);
/* background-image: llinear-gradient(to bottom right, red, yellow); */
index.html cody/swapnilsparsh/30DaysOfJavaScript/140 - Love Calculator/index.html
340 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Love Calculator💘</title>
<link rel="stylesheet" href="style.css">
</head>
readme.md cody/swapnilsparsh/30DaysOfJavaScript/140 - Love Calculator/readme.md
161 Views
0 Comments
# Love Calculator 💘💖

>It's a Love Calculator where Users have to put his/her name with partner's name and the calculator calculates the Love percentage randomly between them and display
## Tech Stack Used: HTML5,CSS3

---
## Screenshot:
![image](https://user-images.githubusercontent.com/77873383/163665816-0509d2a3-0ad1-467c-98e6-b905740162d2.png)
script.js cody/swapnilsparsh/30DaysOfJavaScript/140 - Love Calculator/script.js
178 Views
0 Comments
function love(){
var name1 = document.getElementById("NameOne").value;
var name2 = document.getElementById("NameTwo").value;
if(name1.length<=2){
alert("Enter at least 3 character");
}
if(name2.length<=2){
alert("Enter at least 3 character");